import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 会员等级列表分页查询
export const findMemberGradeListPage = query => {
    return request({
        url: baseRequest_url+'/admin/memberGrade/findMemberGradeListPage',
        method: 'get',
		params: query,
    });
};
// 会员等级详情查询
export const findMemberGradeInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/memberGrade/findMemberGradeInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增会员等级
export const addMemberGrade = data => {
    return request({
        url: baseRequest_url+'/admin/memberGrade/saveMemberGrade',
        method: 'post',
		data: data,
    });
};
// 编辑会员等级
export const saveMemberGrade = data => {
    return request({
        url: baseRequest_url+'/admin/memberGrade/saveMemberGrade',
        method: 'put',
		data: data,
    });
};
// 删除会员等级
export const deleteMemberGradeById = data => {
    return request({
        url: baseRequest_url+'/admin/memberGrade/deleteMemberGradeById/'+data,
        method: 'delete',
    });
};
// 批量删除会员等级
export const batchDeleteMemberGrade = data => {
    return request({
        url: baseRequest_url+'/admin/memberGrade/deleteMemberGrade',
        method: 'delete',
        data: data
    });
};